#!/bin/bash
cd /opt
wget http://nginx.org/download/nginx-1.10.2.tar.gz
tar xf nginx-1.10.2.tar.gz
cd nginx-1.10.2
./configure --prefix=/opt/nginx --with-http_ssl_module --with-http_gunzip_module
make -j4 install

cp /tmp/Docker/nginx.conf /opt/nginx/conf/